package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;
import org.jpedal.parser.shape.S;

/**
 * 核销使用记录
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_checkrecord")
@TableAlias("checkrecord")
@ApiModel(value = "BusCheckrecord对象", description = "核销使用记录")
public class BusCheckrecord extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "checkrecordId", type = IdType.ASSIGN_ID)
    private Long checkrecordId;

    @ApiModelProperty(value = "物品Id")
    private Long userGoodsId;

    @ApiModelProperty(value = "服务名称")
    private String serverName;

    @ApiModelProperty(value = "使用次数")
    private Integer useNum;

    @ApiModelProperty(value = "提交人")
    private Long employeeId;

    private String remark;

    @ApiModelProperty(value = "1服务列表会员卡权益 checkrecordId为cardserverrecord扩展表,2单次产品3免费饮品)")
    private Integer checkType;

    private Integer checkState;

    @ApiModelProperty(value = "权益Id,单次产品Id,免费饮品Id")
    private Long serverId;

    private Long airportId;

    @ApiModelProperty(value = "单次产品Id,店铺Id")
    private Long targetId;

    @ApiModelProperty(value = "使用人")
    private Long userId;

    private Long weChatId;


}
